<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateComplaintsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('complaints', function (Blueprint $table) {
            $table->increments('id');
            $table->string('type')->comment('投诉类型')->nullable();
            $table->string('content')->comment('投诉内容')->nullable();
            $table->string('piclist')->comment('图片列表')->nullable();
            $table->string('username')->comment('投诉人姓名')->nullable();
            $table->tinyInteger('gender')->comment('投诉人性别')->nullable();
            $table->string('iphone')->comment('投诉人电话号码')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('complaints');
    }
}
